/*
 * @Author: your name
 * @Date: 2022-02-03 21:20:35
 * @LastEditTime: 2022-02-04 10:49:13
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue3-vite-tsx\src\components\index.ts
 */

import Dialogs from './dialog'
import Carousel from './carousel'
import CarouselItem from './carousel-item'
import { App } from 'vue'

const components = [Dialogs, Carousel, CarouselItem]

const install = (app: App) => {
  components.forEach((component) => {
    app.use(component.install)
    app.component(component.name, component)
  })
}

export default { install, Dialogs }
